class SlideEntity {
  List<SlideSlide> slides;

  SlideEntity({this.slides});

  SlideEntity.fromJson(Map<String, dynamic> json) {
    if (json['slides'] != null) {
      slides = new List<SlideSlide>();
      (json['slides'] as List).forEach((v) {
        slides.add(new SlideSlide.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.slides != null) {
      data['slides'] = this.slides.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class SlideSlide {
  String image;
  String goodsId;

  SlideSlide({this.image, this.goodsId});

  SlideSlide.fromJson(Map<String, dynamic> json) {
    image = json['image'];
    goodsId = json['goodsId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['image'] = this.image;
    data['goodsId'] = this.goodsId;
    return data;
  }
}
